home *** CD-ROM | disk | FTP | other *** search
- property pGuyList, pGuyTravelList, pGuyCounter, pLastGuyTime, pGuyIntervalTime, pPosInTravelList, pPreviousPosInList
- global gCurrentTravelProps, gGuyLocH, gGuyLocV, gEnable, gSoundCst
-
- on new me
- set pGuyList to [#rightUpright: 31, #downEyesRight: 51, #downEyesLeft: 55, #leftUpright: 35, #leftupsidedown: 39, #upEyesLeft: 43, #upEyesRight: 47]
- set pGuyTravelList to [1: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 146, #Loc1: 85, #Loc2: 169, #LocDirection: 1], 2: [#pChumpingDirection: #upEyesLeft, #AxisConstrain: 2, #PointConstrain: 168, #Loc1: 146, #Loc2: 25, #LocDirection: 2], 3: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 20, #Loc1: 179, #Loc2: 437, #LocDirection: 1], 4: [#pChumpingDirection: #downEyesRight, #AxisConstrain: 2, #PointConstrain: 445, #Loc1: 28, #Loc2: 168, #LocDirection: 1], 5: [#pChumpingDirection: #leftUpright, #AxisConstrain: 1, #PointConstrain: 165, #Loc1: 437, #Loc2: 350, #LocDirection: 2], 6: [#pChumpingDirection: #upEyesRight, #AxisConstrain: 2, #PointConstrain: 360, #Loc1: 177, #Loc2: 69, #LocDirection: 2], 7: [#pChumpingDirection: #leftUpright, #AxisConstrain: 1, #PointConstrain: 60, #Loc1: 354, #Loc2: 240, #LocDirection: 2], 8: [#pChumpingDirection: #downEyesLeft, #AxisConstrain: 2, #PointConstrain: 235, #Loc1: 69, #Loc2: 169, #LocDirection: 1], 9: [#pChumpingDirection: #leftUpright, #AxisConstrain: 1, #PointConstrain: 168, #Loc1: 245, #Loc2: 35, #LocDirection: 2], 10: [#pChumpingDirection: #downEyesLeft, #AxisConstrain: 2, #PointConstrain: 24, #Loc1: 181, #Loc2: 290, #LocDirection: 1], 11: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 277, #Loc1: 35, #Loc2: 173, #LocDirection: 1], 12: [#pChumpingDirection: #upEyesLeft, #AxisConstrain: 2, #PointConstrain: 165, #Loc1: 290, #Loc2: 212, #LocDirection: 2], 13: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 198, #Loc1: 176, #Loc2: 327, #LocDirection: 1], 14: [#pChumpingDirection: #downEyesRight, #AxisConstrain: 2, #PointConstrain: 339, #Loc1: 212, #Loc2: 282, #LocDirection: 1], 15: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 271, #Loc1: 327, #Loc2: 381, #LocDirection: 1], 16: [#pChumpingDirection: #upEyesLeft, #AxisConstrain: 2, #PointConstrain: 369, #Loc1: 284, #Loc2: 204, #LocDirection: 2], 17: [#pChumpingDirection: #rightUpright, #AxisConstrain: 1, #PointConstrain: 191, #Loc1: 381, #Loc2: 462, #LocDirection: 1]]
- set pGuyCounter to 0
- set pLastGuyTime to the timer
- set pGuyIntervalTime to 6
- set pPosInTravelList to 1
- set pPreviousPosInList to 0
- return me
- end
-
- on mUpdateGuy me, vWhatSound
- if the timer < (pLastGuyTime + pGuyIntervalTime) then
- exit
- end if
- set gCurrentTravelProps to getAt(pGuyTravelList, pPosInTravelList)
- case vWhatSound of
- 1:
- if (pGuyCounter = 0) or (pGuyCounter = 2) then
- set pGuyCounter to 1
- end if
- set the memberNum of sprite 40 to getaProp(pGuyList, getAt(gCurrentTravelProps, 1)) + pGuyCounter
- set pGuyCounter to pGuyCounter + 2
- if pGuyCounter = 5 then
- set pGuyCounter to 0
- end if
- otherwise:
- set the memberNum of sprite 40 to getaProp(pGuyList, getAt(gCurrentTravelProps, 1)) + pGuyCounter
- set pGuyCounter to pGuyCounter + 1
- if pGuyCounter = 4 then
- set pGuyCounter to 0
- end if
- end case
- set pLastGuyTime to the timer
- end
-
- on mDragGuy me
- case getAt(gCurrentTravelProps, 2) of
- 1:
- case getAt(gCurrentTravelProps, 6) of
- 1:
- if the mouseH >= the locH of sprite 40 then
- set the loc of sprite 40 to point(the mouseH, getAt(gCurrentTravelProps, 3))
- mUpdateBoxes(gBoxCoverUpManager)
- if the locH of sprite 40 >= getAt(gCurrentTravelProps, 5) then
- if gGuyLocH >= getAt(gCurrentTravelProps, 5) then
- exit
- end if
- SetGuyLocMonitor()
- mNextTravelSegment(me)
- end if
- end if
- 2:
- if the mouseH <= the locH of sprite 40 then
- set the loc of sprite 40 to point(the mouseH, getAt(gCurrentTravelProps, 3))
- mUpdateBoxes(gBoxCoverUpManager)
- if the locH of sprite 40 <= getAt(gCurrentTravelProps, 5) then
- if gGuyLocH <= getAt(gCurrentTravelProps, 5) then
- exit
- end if
- SetGuyLocMonitor()
- mNextTravelSegment(me)
- end if
- end if
- end case
- 2:
- case getAt(gCurrentTravelProps, 6) of
- 1:
- if the mouseV >= the locV of sprite 40 then
- set the loc of sprite 40 to point(getAt(gCurrentTravelProps, 3), the mouseV)
- mUpdateBoxes(gBoxCoverUpManager)
- if the locV of sprite 40 >= getAt(gCurrentTravelProps, 5) then
- if gGuyLocV >= getAt(gCurrentTravelProps, 5) then
- exit
- end if
- SetGuyLocMonitor()
- mNextTravelSegment(me)
- end if
- end if
- 2:
- if the mouseV <= the locV of sprite 40 then
- set the loc of sprite 40 to point(getAt(gCurrentTravelProps, 3), the mouseV)
- mUpdateBoxes(gBoxCoverUpManager)
- if the locV of sprite 40 <= getAt(gCurrentTravelProps, 5) then
- if gGuyLocV <= getAt(gCurrentTravelProps, 5) then
- exit
- end if
- SetGuyLocMonitor()
- mNextTravelSegment(me)
- end if
- end if
- end case
- end case
- end
-
- on mNextTravelSegment me
- case pPosInTravelList of
- 17:
- mWinAnim(me)
- repeat with n = 1 to 40
- set the loc of sprite n to point(1000, 1000)
- end repeat
- updateStage()
- if IsShockWave() then
- gotoNetPage("../ffxgu.html")
- abort()
- else
- if IsProj() then
- go(1, "GUSHERS")
- else
- resetGame()
- end if
- end if
- abort()
- end case
- set pPreviousPosInList to pPosInTravelList
- set pPosInTravelList to pPosInTravelList + 1
- end
-
- on mWinAnim me
- puppetSound(0)
- set gSoundCst to 0
- updateStage()
- set blank to 78
- puppetSound(1, 19)
- set gSoundCst to 19
- updateStage()
- set the stretch of sprite 7 to 0
- set the stretch of sprite 8 to 0
- repeat while soundBusy(1)
- set theTime to the timer + 8
- set the memberNum of sprite 7 to 73
- set the memberNum of sprite 8 to 74
- set the memberNum of sprite 9 to 76
- UStage(theTime)
- set theTime to the timer + 8
- set the memberNum of sprite 9 to 77
- UStage(theTime)
- set theTime to the timer + 8
- set the memberNum of sprite 7 to blank
- set the memberNum of sprite 8 to blank
- set the memberNum of sprite 9 to 76
- UStage(theTime)
- set theTime to the timer + 8
- set the memberNum of sprite 9 to 75
- UStage(theTime)
- end repeat
- end
-